package com.itqn.service;

import com.itqn.pojo.Category;
import com.itqn.pojo.PageBean;

import java.util.List;

/**
 * 分类表业务逻辑层接口
 */
public interface CategoryService {

    //删除员工的方法
    int deleteCategory(int id) throws Exception;

    //添加员工的方法
    int AddCategory(Category category) throws Exception;

    //单查(根据id查询)
    Category findCategoryById(int id) throws Exception;

    //修改员工的方法
    int updateCategory(Category category) throws Exception;

    PageBean<Category> query(String name, Integer pageSize, Integer page) throws Exception;

    // 修改状态的方法
    Integer updatestatic(Category category) throws Exception;

    List<Category> findAllCategory() throws Exception;
}
